package com.codingfuture.st200.service.mqtt;

import net.dreamlu.iot.mqtt.spring.client.MqttClientSubscribe;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
public class MqttClientSubscribeListener {

    private static final Logger logger = LoggerFactory.getLogger(MqttClientSubscribeListener.class);

    @MqttClientSubscribe("/topic/subscribe_temperature")
    public void subQos0(String topic, byte[] payload) {
//        logger.info("topic:{} payload:{}", topic, new String(payload, StandardCharsets.UTF_8));
    }


}
